﻿using CMS.Auth;
using CMS.Model;
using CMS.ServiceProvider;
using CMS.Utils;
using Microsoft.AspNetCore.Mvc;

namespace CMS.Controllers
{
    public class ScheduleTemplateController : BaseController<ScheduleTemplateModel, ScheduleTemplateServiceProvider>
    {
        [HttpGet, MyAuthorize(false)]

        public virtual ResponseData<ScheduleTemplateModel> ListByClass(string dseClass)
        {
            var result = new ResponseData<ScheduleTemplateModel>(serviceProvider.ListByClass(dseClass));
            return result;
        }
    }
}
